package com.ady.collect;

import java.io.File;

public class Demo2 {
    public static void main(String[] args) {
        File filmDir = new File("E:\\ady\\doc\\film");
        File[] filmFiles = filmDir.listFiles((File dir, String name) -> {
            return name.contains("dytt_");
        });
        int i = 175;
        for (File filmFile : filmFiles) {
            String name = filmFile.getName();
            System.out.println();
//            filmFile.getName();
            name = "dytt_" + (175 + Integer.parseInt((name.substring("dytt_".length(), name.length() - 5)))) + ".json";
            System.out.println(filmFile.getName());
            filmFile.renameTo(new File(filmDir, name));
        }
    }
}
